<script setup>
	import useSystemStore from '@/store/modules/system.js'
	import { onLaunch } from "@dcloudio/uni-app"

	const systemStore = useSystemStore();
	onLaunch(async () => {
		try {
			// 获取初始化信息
			await systemStore.getSystem();
			// 获取推荐列表 - 有缓存时不请求
			if (!uni.getStorageSync('recommendList') && systemStore.isPersonalization) {
				const data = await systemStore.getApiRecommendList()
			}
			uni.$isResolve() // 触发全局 Promise 完成
		} catch (err) {
			console.log(err, 'err');
		}
	})
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "common/style/common-style.scss";

	::-webkit-scrollbar {
		display: none;
	}
</style>